﻿@model BasicCMS.Data.PagedTable
@{
    ViewBag.Title = "List";
}

<h2>列表</h2>
@Html.ActionLink("添加", "Edit")
@using (Html.BeginForm("Delete","Content",FormMethod.Post))
{
    <table>
        <tr>
            <th>
                <input type="checkbox" /></th>
            <th>ID</th>
            <th>Name</th>
            <th>Password</th>
            <th>操作</th>
        </tr>
        @foreach (dynamic item in Model.Table.Rows)
        {
            <tr>
                <td>
                    <input name="Id" type="checkbox" value="@item["Id"]" /></td>
                <td>@item["Id"]</td>
                <td>@item["Name"]</td>
                <td>@item["Password"]</td>
                <td>
                    @Html.ActionLink("查看", "View", new { Id = item["Id"] })|
                @Html.ActionLink("修改", "Edit", new { Id = item["Id"] })|
                @Html.ActionLink("删除", "Delete", new { Id = item["Id"] })
                </td>
            </tr>
        }
    </table>

    @Html.Pager(Model)<br />
    <input id="btnDel" type="submit" value="删除" />
}